package com.wf.smartcomm.server.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "t_thumbImage")
public class ThumbImage {
	
	@Expose
	@Id
	@Column(length = 32)
	private String objectId;
	
	@Expose
	@Column(length = 128)
	private String fileName;
	
	@Expose
	@Column(length = 1)
	private String type;
	
	@Expose
	@Column(length = 4096)
	private String url;
	
	@ManyToOne
	@JoinColumn(name = "complainId")
	private Complain complain;
	
	@ManyToOne
	@JoinColumn(name = "praiseId")
	private Praise praise;
	
	@ManyToOne
	@JoinColumn(name = "guideId")
	private Guide guide;
	
	@ManyToOne
	@JoinColumn(name = "shopId")
	private Shop shop;
	
	@ManyToOne
	@JoinColumn(name = "repairId")
	private Repair repair;
	
	@ManyToOne
	@JoinColumn(name = "adId")
	private Advertisement ad;
	
	@ManyToOne
	@JoinColumn(name = "anId")
	private Announcement announce;
	
	@ManyToOne
	@JoinColumn(name = "vid")
	private Village village;
	
	@Column(length = 20)
	private String createdAt;

	public Advertisement getAd() {
		return ad;
	}

	public void setAd(Advertisement ad) {
		this.ad = ad;
	}

	public Announcement getAnnounce() {
		return announce;
	}

	public void setAnnounce(Announcement announce) {
		this.announce = announce;
	}

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}

	public Complain getComplain() {
		return complain;
	}

	public void setComplain(Complain complain) {
		this.complain = complain;
	}

	public Praise getPraise() {
		return praise;
	}

	public void setPraise(Praise praise) {
		this.praise = praise;
	}

	public Guide getGuide() {
		return guide;
	}

	public void setGuide(Guide guide) {
		this.guide = guide;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public Repair getRepair() {
		return repair;
	}

	public void setRepair(Repair repair) {
		this.repair = repair;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Village getVillage() {
		return village;
	}

	public void setVillage(Village village) {
		this.village = village;
	}
}
